import '../public.dart';
import 'package:provider/single_child_widget.dart';

List<SingleChildWidget> providers = [
  ...independentServices,
  ...dependentServices,
  ...uiConsumableProviders
];

/// 独立的model
List<SingleChildWidget> independentServices = [
  Provider<UserModel>(create: (_) => UserModel()),
  Provider<SystemModel>(create: (_) => SystemModel())
];

/// 需要依赖的model
List<SingleChildWidget> dependentServices = [
//  ProxyProvider<UserModel, HomeModel>(
//    builder: (context, userModel, homeModel) => HomeModel(userModel),
//  )
];

List<SingleChildWidget> uiConsumableProviders = [
//  StreamProvider<User>(
//    builder: (context) => Provider.of<AuthenticationService>(context, listen: false).user,
//  )
];
